const productionCenterRoutes = [
  // {
  //   path: '/production-center/balance',
  //   name: '余额转账（有密）',
  //   routes: [
  //     {
  //       path: '/production-center/balance/batch-change',
  //       name: '转账操作',
  //       component: './production-center/balance/batch-change',
  //     },
  //     {
  //       path: '/production-center/balance/balance-record',
  //       name: '转账记录',
  //       component: './production-center/balance/balance-record',
  //     },
  //     {
  //       path: '/production-center/balance/balance-detail',
  //       name: '明细查询',
  //       component: './production-center/balance/balance-detail',
  //     },
  //     {
  //       path: '/production-center/balance/balance-statistic',
  //       name: '转账统计',
  //       component: './production-center/balance/balance-statistic',
  //     },
  //   ],
  // },
  {
    path: '/production-center/acs',
    name: 'ACS转账（无密）',
    routes: [
      {
        path: '/production-center/acs/acs-change',
        name: '转账操作',
        component: './production-center/acs/acs-change',
      },
      {
        path: '/production-center/acs/acs-record',
        name: '转账记录',
        component: './production-center/acs/acs-record',
      },
      {
        path: '/production-center/acs/acs-detail',
        name: '明细查询',
        component: './production-center/acs/acs-detail',
      },
      {
        path: '/production-center/acs/acs-statistic',
        name: '转账统计',
        component: './production-center/acs/acs-statistic',
      },
    ],
  },
];
const financialCenterRoutes = [
  {
    path: '/financial-center/tallybook',
    name: '记账本管理',
    routes: [
      {
        path: '/financial-center/tallybook/tallybook-account',
        name: '记账本账户',
        component: './financial-center/tallybook/tallybook-account',
      },
      {
        path: '/financial-center/tallybook/recharge-record',
        name: '充值记录',
        component: './financial-center/tallybook/recharge-record',
      },
    ],
  },
  {
    path: '/financial-center/servicefee',
    name: '服务费管理',
    routes: [
      {
        name: '服务费充值',
        path: '/financial-center/servicefee/service-recharge',
        component: './financial-center/servicefee/service-recharge',
      },
      {
        name: '明细查询',
        path: '/financial-center/servicefee/service-detail',
        component: './financial-center/servicefee/service-detail',
      },
      {
        name: '服务费提现',
        path: '/financial-center/servicefee/service-withdraw',
        component: './financial-center/servicefee/service-withdraw',
      },
    ],
  },
];
const accountCenterRoutes = [
  {
    path: '/account-center/account-info',
    name: '账户信息',
    routes: [
      {
        path: '/account-center/account-info/base-info',
        name: '基本信息',
        component: './account-center/account-info/base-info',
      },
      {
        path: '/account-center/account-info/password-manager',
        name: '密码管理',
        component: './account-center/account-info/password-manager',
      },
      {
        path: '/account-center/account-info/login-record',
        name: '登录记录',
        component: './account-center/account-info/login-record',
      },
    ],
  },
  {
    path: '/account-center/sign-manager',
    name: '签约管理',
    routes: [
      {
        path: '/account-center/sign-manager/account-sign',
        name: '账户签约',
        component: './account-center/sign-manager/account-sign',
      },
      {
        path: '/account-center/sign-manager/authentication-center',
        name: '认证中心',
        component: './account-center/sign-manager/authentication-center',
      },
      {
        path: '/account-center/sign-manager/authentication-center/submitAuthentication',
        name: '提交认证材料',
        component:
          './account-center/sign-manager/authentication-center/submitAuthentication',
        hideInMenu: true,
      },
    ],
  },
  {
    path: '/account-center/system-setting',
    name: '系统设置',
    routes: [
      {
        path: '/account-center/system-setting/develop-setting',
        name: '开发设置',
        component: './account-center/system-setting/develop-setting',
      },
      {
        path: '/account-center/system-setting/system-setting',
        name: '系统设置',
        component: './account-center/system-setting/system-setting',
        hideInMenu: true,
      },
    ],
  },
];
export default [
  {
    path: '/',
    redirect: '/dashboard',
  },
  {
    name: '首页',
    path: '/dashboard',
    component: './Home',
    layout: false,
  },
  {
    name: '登录',
    path: '/login',
    component: './Login',
    layout: false,
  },
  {
    name: '注册',
    path: '/reg',
    component: './reg',
    layout: false,
  },
  {
    path: '*',
    layout: false,
    component: './404',
  },
  ...productionCenterRoutes,
  ...financialCenterRoutes,
  ...accountCenterRoutes,
];
